<template>
  <div id="app">
     <!-- exclude不包括哪几个组件-->
    <keep-alive exclude="Detail">
      <router-view v-if='isRouterAlive'></router-view>
    </keep-alive>
    <MainTabBar/>
  </div>
</template>

<script>
import MainTabBar from "components/content/mainTabbar/MainTabBar";


export default {
  name: 'App',
  components: {
    MainTabBar
  },
  provide() {
    return {
    reload:  this.reload
    }
  },
  data() {
    return {
      isRouterAlive: true
      }
    },
    methods: {
      reload() {
        this.isRouterAlive = false
        this.$nextTick(function() {
          this.isRouterAlive = true
        })
      }
    
  }
}
</script>

<style>
@import "./assets/css/base.css";
</style>
